<!DOCTYPE HTML>
<html>
<head>
	<meta charset="utf-8">
	<title>Empty 空状态</title>
	<link rel="stylesheet" href="../static/css/element2.css">
	<script src="../static/js/vue.global.prod.js"></script>
	<script src="../static/js/element-plue2.js"></script>
	
	<link rel="stylesheet" href="../static/css/com.css">
</head>
<body>
<div id="app" class="">
	<el-divider content-position="left">基础用法</el-divider><!-- =============================================================== -->
	<p class="desc">空状态时的占位提示。</p>
	<el-empty description="description-空空如也"></el-empty>
	
	<el-divider content-position="left">自定义图片</el-divider><!-- =============================================================== -->
	<p class="desc">通过设置 image 属性传入图片 URL。</p>
	<el-empty description="description-空空如也" image="https://shadow.elemecdn.com/app/element/hamburger.9cf7b091-55e9-11e9-a976-7f4d0b07eef6.png"></el-empty>
	
	<el-divider content-position="left">图片尺寸</el-divider><!-- =============================================================== -->
	<p class="desc">通过使用 image-size 属性来控制图片大小。</p>
	<el-empty description="description-空空如也" :image-size="100"></el-empty>
	
	<el-divider content-position="left">底部内容</el-divider><!-- =============================================================== -->
	<p class="desc">使用默认插槽可在底部插入内容。</p>
	<el-empty>
		<template #description>
			<p><i style="font-weight: 700;">自定义：</i>description</p>
		</template>
		<el-button type="primary">Button</el-button>
	</el-empty>
	
</div>

</body>
<script>
const Main = {
	data() {
		return {
			message: 'Hello Vue!!'
		}
	},
	methods:{
		fn(){
			this.message = "欢迎来到HTML中文网。";
		},
		hello(par){
			this.message = "参数值为：" + par;
		}
	}
}

const app = Vue.createApp(Main);
app.use(ElementPlus);
let vm = app.mount("#app");
</script>
</html>